package test3;

public abstract class Pet {
    public String name;
    public int health;//健康health
    public int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Pet() {
    }

    public Pet(String name, int health, int age) {
        this.name = name;
        this.health = health;
        this.age = age;
    }
    abstract void show();
}
